{include file="header.html"}
<div class="row">
<div class="span12">
{include file="collect_rule/nav.html"}
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="collect">
状态：<select name="s_status">
<option value="0" {if get('s_status') eq 0} selected{/if}>未采集</option>
<option value="1" {if get('s_status') eq 1} selected{/if}>已采集</option>
</select>
主题：<input type="text" name="title" value="{$smarty.get.title}">
<input type="submit" value="筛选" class="btn btn-success">
</form>
<form method="post" action="{$appadmin}?m=collect&a=pidelete">
<table class="table table-bordered">
<tr>
	<td>Id<input type="checkbox" id="chkall" /></td>
    <td>标题</td>
    <td>所属规则</td>
   
   <td>所属分类</td>
    <td>状态</td>
    
     <td>操作</td>
</tr>

{foreach item=c from=$data}
<tr>
	<td>{$c.id}  <input type="checkbox" name="ids[{$c.id}]" class="chk_opt" value="{$c.id}" /></td>
    <td><a href="{$c.url}" target="_blank">{$c.title}</a></td>
    
    <td>{$rule_list[$c.rule_id]}</td>
   <td>{$c.cname}</td>
    <td>{if $c.status}已采集{else}未采集{/if}</td>
     
    <td><a href="{$appadmin}?m=collect&a=savebyid&id={$c.id}">采集</a>
     <a href="javascript:;" class="delete" url="{$appadmin}?m=collect&a=status&id={$c.id}">删除</a>
    </td>
</tr>
{/foreach}

</table>
<button type="submit" class="btn btn-danger">删除所选</button>
</form>
{$pagelist}
</div>
</div>
<script language="javascript">
$(function(){
	$("#chkall").bind("click",function(){
		if($(this).attr("checked")=="checked" || $(this).attr("checked")==true ){
			$(".chk_opt").attr("checked",true);
		}else{
			$(".chk_opt").attr("checked",false);
		}
	});
});
</script>
{include file="footer.html"}